import {defineStore} from "pinia";
import {ref} from "vue";
export const useDeliveryAddressIdStore=defineStore('deliveryAddressId',()=>{
        const deliveryAddressId=ref(0)

        function setDeliveryAddressId(newId){
            deliveryAddressId.value=newId
        }
        function removeDeliveryAddressId(){
            deliveryAddressId.value=0
        }
        return{
            deliveryAddressId,setDeliveryAddressId,removeDeliveryAddressId
        }
    },
    {
        persist:true
    }
);